fix(python): suppress weak same-name CALLS for get/run/execute - #1386
fix(python): suppress weak same-name CALLS for get/run/execute#1386Joseph-MingEn wants to merge 1 commit into
Conversation
Mirror TS/JS weak-method guards for Python attribute calls and bare generic callees so suffix_match cannot bind prior_cp.get / run() onto unrelated Methods (G2 / Yui WP-B C2). Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thanks for opening this — it has been seen, and it is queued. This note is automated, but it is not a brush-off: it exists so you know where your PR stands instead of having to guess from silence. Current review status: working through a backlog. What that means for this PR, concretely:
Things that will genuinely speed it up whenever review does happen:
If this fixes a bug, a reproduction we can run is worth more than a description of the symptom. Thanks for contributing, and sorry in advance for the wait. |
|
Thank you for the focused Python same-name fallback suppression and the tests around generic method names. This is now routed as a high-priority parsing fix in |
Summary
get/run/execute), mirroring the existing TS/JS weak-method guard.attributecalls asis_methodduring extraction soprior_cp.get(...)cannotsuffix_matchonto unrelated Methods (e.g._SessionRegistry.get).run()Callable-parameter calls from binding to unrelated Methods (e.g.SatoriLive.run).Motivation (Yui WP-B C2 / G2)
On a large Python repo,
trace_pathhop-1 showed fabricated CALLS:router.submit_task→_SessionRegistry.getviastrategy=suffix_match/callee=prior_cp.get/ conf0.28gate._run_with_heavy_slot→SatoriLive.runviasuffix_match/ barerun()/ conf0.28Strong strategies (
import_map,same_module,lsp_*) are kept.Test plan
./build/c/test-runner registry(includes new python suppress unit tests)./build/c/test-runner pipeline(includespipeline_python_suppresses_weak_generic_edges)Made with Cursor